package com.zs.service.impl;

import com.zs.dao.CustomerMapper;
import com.zs.entity.Customer;
import com.zs.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("customerService")
public class CustomerServiceimpl implements CustomerService {
    @Autowired
    private CustomerMapper customerMapper;

    @Override
    public void customerReg(Customer customer) {
        customerMapper.customerReg(customer);
    }

    @Override
    public String checkName(String name) {
        return customerMapper.checkName(name);
    }

}
